package com.pvdnc.nsocket;

import java.io.Serializable;

public class EndPoint implements Serializable {
    private String mHost;

    private int mPort;

    public EndPoint(String host,int port){
        setHost(host);
        setPort(port);
    }

    public String getHost() {
        return mHost;
    }

    public void setHost(String host) {
        if(host==null)
            host="localhost";
        this.mHost = host;
    }

    public int getPort() {
        return mPort;
    }

    public void setPort(int port) {
        this.mPort = port;
    }

    @Override
    public String toString() {
        return "EndPoint{" +
                "mHost='" + mHost + '\'' +
                ", mPort=" + mPort +
                '}';
    }
}
